<extend name="Base/common"/>



<block name="side">
<!-- 左侧 nav
================================================== -->

      <include file="Student/side" />

</block>


    <block name="body">
	<!-- 标题栏 -->
	<div class="span8">
		<h2>学生列表 :  </h2>
	        <div class="search-form">
               <form method='post' id="form1" name="form1" action="{:U('Student/index')}"  >
                <select name="class" id="class" onChange="this.form.submit()">
                     <option >{$_sclass}</option>
                       <volist name="_class" id="vo">                       
                        <option >{$vo.class}</option>
                        </volist>
                        </select>
                </form>
            </div>
       

		<div class="fl">
            <a class="fbtn" href="{:U('Student/add')}">新 增</a>
            <button class="fbtn ajax-post" url="{:U('Student/searchStudent')}" >学生查询</button>            
            <button class="fbtn ajax-post" url="{:U('excel_class')}" >导出Excel</button>
        </div>

        
    
    <!-- 数据列表 -->
        <div class="data-table table-striped">
	     <table class="data-table">
             <thead>
            <tr>
        		<th class="row-selected "><input class="check-all" type="checkbox"/></th>
        		<th class="">班级</th>
                <th class="">班内编号</th>
        		<th class="">姓名</th>		
        		<th class="">性别</th>
                <th class="">选报课程</th>
                <th class="">选报时间</th>
        		<th class="">操作</th>
    		</tr>
            </thead>
            <tbody>
        	<notempty name="_list">
        		<volist name="_list" id="vo">
        		<tr>
                    <td><input class="ids" type="checkbox" name="id[]" value="{$vo.uid}" /></td>
        			<td>{$vo.class} </td>
        			<td>{$vo.code}</td>
        			<td>{$vo.name}</td>
                    <td>{$vo.sex}</td>
                    <td>{$vo.cname}</td>		
                    <td><span><if condition="($vo.update_time eq 0)"> &nbsp <else/>
                  {$vo.update_time|date='Y-m-d',###}</if></span></td>	        			
        			<td>
        				<a href="{:U('Student/select_curriculum','sid='.$vo['sid'])}" >选课</a> |
        				
        				<a href="{:U('student/truncate?sid='.$vo['sid'])}" class="authorize">清除选课</a>
                        
                        </td>
        		</tr>
        		</volist>
        		<else/>
        		<td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
        		</notempty>
        	</tbody>
            </table>
	</div></div>
    <div class="page">
        {$_page}
    </div>
</block>

